﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Basmus.DataStructures.Generic
{
	public class Tuple<TElement> : ITuple<TElement>
	{
		public TElement Element { get; private set; }
		public IEnumerable<TElement> Elements { get; private set; }
		public bool IsEnumerable { get; private set; }
		public Tuple(TElement element)
		{
			IsEnumerable = false;
			Element = element;
		}
		public Tuple(IEnumerable<TElement> elements)
		{
			IsEnumerable = true;
			Elements = elements;
		}
	}
}
